import config from "@/config"
import http from "@/utils/request"

export default {
	add: {
		url: `${config.API_URL}/jjOrg/org/add`,
		name: "添加组织",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/jjOrg/org/modify`,
		name: "修改组织",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	list: {
		url: `${config.API_URL}/jjOrg/org/getPage`,
		name: "组织列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	delete: {
		url: `${config.API_URL}/jjOrg/org/delete`,
		name: "删除组织",
		post: async function(params){
			return await http.post(this.url, params);
		}
	}
}
